package him.action.board;

import him.action.Action;
import him.action.ActionForward;
import him.dto.bbs.BoardUserDto;
import him.service.BoardUserService;
import him.serviceimple.BoardUserServiceImp;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class UserListAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		ActionForward forward=new ActionForward();
		BoardUserService service=BoardUserServiceImp.getInstance();
		List<BoardUserDto> userlist=service.getAllUsers();
		request.setAttribute("lists",userlist);
		forward.setUrl("adminlist");
		
		return forward;
	}

}
